<form id="dataForm">
<input type="hidden" name="info[id]" value="{$formData.id}"/>
<li>
	<div class="list_content" style="width:100px; text-align:right;">车辆ID：</div>
	<div class="list_content" style="width:370px; text-align:left; padding-left:5px;padding-right:5px;">
	    <input type="text" class="list_text" style="width:340px;" name="info[number]" value="{$formData.number}"/>
	</div>
</li>
<li>
	<div class="list_content" style="width:100px; text-align:right; padding-top:15px;">车辆名称：</div>
	<div class="list_content" style="width:370px; text-align:left; padding-left:5px; padding-right:5px;">
	    <input type="text" class="list_text" style="width:340px;" name="info[name]" value="{$formData.name}"/>
	</div>
</li>
<li>
	<div class="list_content" style="width:100px; text-align:right; padding-top:15px;">车辆颜色：</div>
	<div class="list_content" style="width:370px; text-align:left; padding-left:5px; padding-right:5px;">
	<input type="text" class="list_text" style="width:340px;" name="info[color]" value="{$formData.color}"/>
	</div>
</li>
<li>
	<div class="list_content" style="width:100px; text-align:right; padding-top:15px;">车辆状态：</div>
	<div class="list_content" style="width:370px; text-align:left; padding-left:5px; line-height:33px; padding-right:5px;">
	<label style="font-weight:normal;"><input type="radio" name="info[status]" value="1" {:$formData['status']!='2'?'checked':''}/> 待售中</label>
	<label style="font-weight:normal;"><input type="radio" name="info[status]" value="2" {:$formData['status']=='2'?'checked':''}/> 已售出</label>
	</div>
</li>
<li>
	<div class="list_content" style="width:100%; text-align:left;padding-left:15px;font-size:12px;color:#999;padding-top:15px;">注：车主信息在用户扫码后会自动生成，如非必要，请勿手动修改</div>
</li>
<div id="user_msg">
<input type="hidden" name="info[user_id]" value="{$formData.user_id}"/>
<li>
	<div class="list_content" style="width:100px; text-align:right; padding-top:15px;">车主姓名：</div>
	<div class="list_content" style="width:370px; text-align:left; padding-left:5px; padding-right:5px;">
	<input type="text" class="list_text" style="width:340px;" name="info[user_name]" {:$formData['status'] == '2'?'':'readonly'} value="{$formData.user_name}"/>
	</div>
</li>
<li>
	<div class="list_content" style="width:100px; text-align:right; padding-top:15px;">车主手机号：</div>
	<div class="list_content" style="width:370px; text-align:left; padding-left:5px; padding-right:5px;">
	<input type="text" class="list_text" style="width:340px;" name="info[user_phone]" {:$formData['status'] == '2'?'':'readonly'} value="{$formData.user_phone}"/>
	</div>
</li>
</div>
<script>
$(function(){
	$('input[name="info[status]"]').click(function(){
		if($(this).val() == '1'){
			$('#user_msg').find('input').prop('readonly',true);
			$('#user_msg').find('input').val('');
		}else{
			$('#user_msg').find('input').prop('readonly',false);
		}
	});
});
</script>
</form>